Adds a cache entry into the cache, and returns an existing cache entry with a matching key.
public override CacheItem<T> AddOrGetExisting<T>(
CacheItem<T> item,
CacheItemPolicy policy
)
Public Overrides Function AddOrGetExisting(Of T)(
ByVal item As CacheItem(Of T),
ByVal policy As CacheItemPolicy
) As CacheItem(Of T)
public:
generic<typename T>
virtual CacheItem<T>^ AddOrGetExisting(
CacheItem<T>^ item,
CacheItemPolicy^ policy
) override
@Override
public <T> CacheItem<T> addOrGetExisting(CacheItem<T> item, Class<?> classOfT, CacheItemPolicy policy)
item
Cache item to add.
policy
Expiration policy for the item.
The previous cache entry that matches the specified key, if found. If the cache contains an item with the same key, then it will be returned before it is overwritten. Otherwise, null.
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET